package com.itheima.pinda.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.pinda.entity.base.Entity;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 货物类型实体
 */


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "pd_goods_type")
public class PdGoodsType extends Entity implements Serializable {

    public static final long serialVersionID = 1L;

    /**
     * 货物类型名称
     */
    @TableField(value = "`name`")
    private String name;
    /**
     * 默认重量，单位：千克
     */
    @TableField(value = "default_weight")
    private BigDecimal defaultWeight;
    /**
     * 默认体积，单位：方
     */
    @TableField(value = "default_volume")
    private BigDecimal defaultVolume;
    /**
     * 说明
     */
    @TableField(value = "remark")
    private String remark;
    /**
     * 状态 0：禁用 1：正常
     */
    @TableField(value = "`status`")
    private Integer status;
}